package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam;



import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.File;

import java.util.List;

/**
 * Created by yangcs on 2016/8/8.
 */
public interface IamFileMapper {
    /**
     * 新增附件操作
     * @param list 附件集合
     * @return
     */
    int insert(List<File> list);

    /***
     * 删除附件操作
     * @param businessId 业务数据Id
     * @return
     */
    int delFileByBusinessId(String businessId);

    /***
     * 查询附件操作
     * @param businessId 业务数据Id
     * @return
     */
    List<File> queryFilesByBusinessId(String businessId);

    /**
     * 删除附件操作
     * @param hbasepath
     * @return
     */
    int delFile(String hbasepath);

    //List<File> querylistbyid(List<Infoflow> list);


    List<File> queryList(BootstrapSearchBean bootstrapSearchBean);

    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 查询附件操作
     * @param fileId 附件id
     * @return
     */
    File selectByPrimaryKey(String fileId);

    /***
     * 附件查询操作
     * @param ids
     * @return
     */
    List<File> queryListByIds(String[] ids);

    /**
     * 删除附件操作
     * @param fileId 附件id
     * @return
     */
    int deleteByPrimaryKey(String fileId);

}
